﻿<Window x:Class="PatientVisitWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:lib="clr-namespace:HMSLibrary;assembly=HMSLibrary"
    xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
    SizeToContent="WidthAndHeight" WindowStyle="None" AllowsTransparency="True" Icon="/Horizon.HMS;component/Images/POSIcon.ico"
    xmlns:local="clr-namespace:Horizon.HMS" WindowStartupLocation="CenterScreen" Background="Transparent" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit">
    <Border Background="White" BorderBrush="Navy" BorderThickness="2" CornerRadius="10" Width="950" Height="700">
        <Grid Margin="10" Background="{StaticResource WindowBackground}">
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock Margin="20,2" FontSize="16" FontWeight="SemiBold" Foreground="{StaticResource TextLabelColor}">
             <Run Text="HMS(" />
            <Run Text="Your management partner..." FontSize="10" FontStyle="Italic"/>
            <Run Text=")" />
            <Run Text=" :: "/>
            <Run Text="Patient Visits"/>
            </TextBlock>
            <Button Grid.Column="2" Style="{DynamicResource CloseButtonStyle}" Width="11.195" Content="Button" x:Name="CloseButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,5.583,7.468,0" VerticalAlignment="Top" Height="12.77"/>
            <Button Grid.Column="2" Style="{DynamicResource MinimizeButtonStyle}" Width="12.402" Content="Button" x:Name="MinimizeButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,4.733,24.606,0" VerticalAlignment="Top" Height="13.537"/>
            <Path Data="M18,115 L616,115" Fill="#FFF4F4F5" Height="1" Margin="5" Width="920" Stretch="Fill" Stroke="White" Grid.Row="1" Grid.ColumnSpan="2"/>
            <Grid Grid.Row="2" Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <local:PatientSearchControl x:Name="PatientControl"/>
                <Grid Grid.Row="1" Grid.ColumnSpan="2">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Complain:" Style="{StaticResource TextBlockStyle}"/>
                    <TextBox Grid.Column="1" Grid.ColumnSpan="3" Name="ComplainTextBox" Margin="2" IsReadOnly="True"/>
                    <TextBlock Text="Age:" Grid.Column="2" Grid.Row="1" Style="{StaticResource TextBlockStyle}"/>
                    <TextBox Grid.Column="3" Grid.Row="1" Width="60" HorizontalAlignment="Left" Name="AgeTextBox" Margin="2" IsReadOnly="True"/>
                    <TextBlock Text="Last Visit:" Grid.Row="1" Style="{StaticResource TextBlockStyle}"/>
                    <TextBox Grid.Column="1" Grid.Row="1" Name="LastVisitTextBox" Margin="2" IsReadOnly="True"/>
                </Grid>
                <TabControl Name="MainStack" Grid.Row="2" Grid.ColumnSpan="2" Height="520">
                    <TabItem Header="Visit" Name="PatientVisitTabItem" >
                        <local:PatientVisitUserControl x:Name="PatientVisitUC" Height="490" Width="900"/>
                    </TabItem>
                    <!--<TabItem Header="Problems" Name="PatientProblemsTabItem">
                        <local:PatientProblemUserControl x:Name="PatientProblemsUC"/>
                    </TabItem>-->
                    <TabItem Header="Tests and History" Name="PatientHistoryTabItem">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <local:PatientHistoryUserControl Grid.Column="1" x:Name="PatientHistoryUC"/>
                            <local:PatientTestUserControl x:Name="PatientTestUC"/>
                        </Grid>
                    </TabItem>
                </TabControl>
            </Grid>
            <local:SidePanel Grid.Row="2" x:Name="TransSidePanel" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.ColumnSpan="2"/>
        </Grid>
    </Border>
</Window>
